Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 20 - QuickDraw 3D Mathematical Utilities / QuickDraw 3D Mathematical Utilities Reference
QuickDraw 3D Mathematical Utilities / Adding and Subtracting Points and Vectors


Q3Point3D_Vector3D_Add

You can use the Q3Point3D_Vector3D_Add function to add a three-dimensional vector to a three-dimensional point.

TQ3Point3D *Q3Point3D_Vector3D_Add (
const TQ3Point3D *point3D, 
const TQ3Vector3D *vector3D, 
TQ3Point3D *result);
point3D
A three-dimensional point.
vector3D
A three-dimensional vector.
result
On exit, a three-dimensional point that is the result of adding vector3D to point3D.
DESCRIPTION
The Q3Point3D_Vector3D_Add function returns, as its function result and in the result parameter, the three-dimensional point that is the result of adding the vector vector3D to the point point3D.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996